package com.shunli.cterminal.enums;

import com.examples.core.enums.BaseEnum;
import com.examples.core.enums.EnumOperations;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NonNull;

/**
 * @className: CollectionStyleTypeEnum
 * @description: TODO
 * @author: DAIYALU
 * @date: 2024/11/7
 * @version: 1.0
 */
@Getter
@AllArgsConstructor
public enum CollectionStyleTypeEnum implements BaseEnum<String> {

    HOME("home", "首页"),
    ORDER("order","订单查询"),
    YUNCHENG("yuncheng", "今日运程");


    @NonNull
    private final String code;

    @NonNull
    private final String desc;

    public static CollectionStyleTypeEnum ofCodeNoisy(String code) {
        return EnumOperations.getByCodeNoisy(CollectionStyleTypeEnum.class, code);
    }
}
